package org.example.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel
public class Emp implements Serializable {

    @ApiModelProperty(value = "员工id", example = "0")
    private Integer id;

    @ApiModelProperty(value = "员工姓名")
    @NotBlank(message = "员工姓名不能为空")
    private String name;

    @ApiModelProperty(value = "员工年龄", example = "0")
    @NotNull(message = "员工年龄不能为空")
    private Integer age;
}